package com.rp.article.serivce;

import com.rp.bo.NewArticleBO;
import com.rp.news.common.PagedResult;
import com.rp.news.common.Result;
import com.rp.pojo.Category;

import java.util.Date;

public interface ArticleService {
    
    void createArticle(NewArticleBO newArticleBO, Category category);
    void updateAppointToPublish();

    PagedResult queryMyList(String userId, String keyword, Integer status, Date startDate, Date endDate, Integer page, Integer pageSize);

    void updateArticleStatus(String articleId,Integer pendingStatus);

    PagedResult queryAllList(Integer status, Integer page, Integer pageSize);

    void deleteArticle(String userId, String articleId);

    void withdrawArticle(String userId, String articleId);

    void updateArticleToGridFS(String articleId,String articleMongoId);

}
